import * as React from 'react';
import propTypes from 'prop-types';
import { Map } from 'immutable';
import { BaseComponent } from 'fe-lib';

class {{Module}} extends BaseComponent {
  constructor(props, context) {
    super(props, context);
    // 初始化state
    this.state = {};
    // 绑定this
    this.bind();
  }

  componentDidMount() {
    // 当组件完成加载时，需要执行的操作，例如：
    // this.props.method();
  }

  render() {
    return (
      <div>{{Module}}</div>
    );
  }
}

/** 定义propTypes */
{{Module}}.propTypes = {
  /** props */
  props: propTypes.oneOfType(Map).isRequired,
  /** method */
  method: propTypes.func.isRequired,
};

export default {{Module}};
